<?php
session_start();
$proId = $_GET["proId"];
$quantity = $_GET["quantity"];

if($quantity > 0){
    $_SESSION["cart"][$proId][1] = $quantity;
} else {
    unset($_SESSION["cart"][$proId]);
}
	 
echo "<script>window.location.href = '../profile-cart.php#cart-tab';</script>";
?>